package LawsonTransformJava.data;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;


public class TblTAEmpTrans extends TblDate {
	public String	r_plan			=null; 
	public String 	employee_group	=null; 
	public int 		employee		=0;
	public String	position		=null;
	public float 	ta_hours		=0; 
	public int 		ta_type			=0; 
	public Date		r_date			=null;
	public int 		tran_type		=0; 
	public String	description		=null; 
	public Date		lst_per_dt_hrs	=null;
	public Date 	lst_per_dt_ern	=null;

//	private DateFormat df = new SimpleDateFormat("MM/dd/yyyy");
//	private DateFormat df2 = new SimpleDateFormat("yyyyMMdd");
	private String text; 	

	// Setters

	public void setR_plan(String r_plan) {
		this.r_plan = r_plan;
	}
	public void setEmployee_group(String employee_group) {
		this.employee_group = employee_group;
	}
	public void setEmployee(int employee) {
		this.employee = employee;
	}
	public void setPosition(String position) {
		this.position = position;
	}
	public void setTa_hours(float ta_hours) {
		this.ta_hours = ta_hours;
	}
	public void setTa_type(int ta_type) {
		this.ta_type = ta_type;
	}
	public void setR_date(Date r_date) {
		this.r_date = r_date;
	}
	public void setTran_type(int tran_type) {
		this.tran_type = tran_type;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public void setLst_per_dt_hrs(Date lst_per_dt_hrs) {
		this.lst_per_dt_hrs = lst_per_dt_hrs;
	}
	public void setLst_per_dt_ern(Date lst_per_dt_ern) {
		this.lst_per_dt_ern = lst_per_dt_ern;
	}

	// Getters

	public String getR_plan() {
		if (r_plan==null||r_plan.equals(""))
		{text = "";}
		else
		{text = "\""+r_plan+"\"";}
		return text;	
	}
	public String getEmployee_group() {
		if (employee_group==null||employee_group.equals(""))
		{text = "";}
		else
		{text = "\""+employee_group+"\"";}
		return text;		
	}
	public int getEmployee() {
		return employee;
	}
	public String getPosition() {
		return "\"" + position + "\"";
	}
	public float getTa_hours() {
		return ta_hours;
	}
	public int getTa_type() {
		return ta_type;
	}
	public String getR_date() {
		return this.convertDate(r_date);
	//		if (r_date==null)
	//		{text = "";}
	//		else
	//		{String date =(r_date!=null?df2.format(r_date).toString():""); 
	//		if (date.equals("17000101"))
	//			{text = "";}
	//		else
	//			{text ="\"" + df.format(r_date).toString() + "\"";;}}
	//		return text;			
	}
	public int getTran_type() {
		return tran_type;
	}
	public String getDescription() {
		if (description==null||description.equals(""))
		{text = "";}
		else
		{text = "\""+description+"\"";}
		return text;		
	}
	public String getLst_per_dt_hrs() {
		return this.convertDate(lst_per_dt_hrs);
	//		if (lst_per_dt_hrs==null)
	//		{text = "";}
	//		else
	//		{String date =(lst_per_dt_hrs!=null?df2.format(lst_per_dt_hrs).toString():""); 
	//		if (date.equals("17000101"))
	//			{text = "";}
	//		else
	//			{text ="\"" + df.format(lst_per_dt_hrs).toString() + "\"";;}}
	//		return text;			
	}
	public String getLst_per_dt_ern() {
		return this.convertDate(lst_per_dt_ern);
	//		if (lst_per_dt_ern==null)
	//		{text = "";}
	//		else
	//		{String date =(lst_per_dt_ern!=null?df2.format(lst_per_dt_ern).toString():""); 
	//		if (date.equals("17000101"))
	//			{text = "";}
	//		else
	//			{text ="\"" + df.format(lst_per_dt_ern).toString() + "\"";;}}
	//		return text;			
	}	
}
